<div id="content_header">
  <h3>Student Raffled</h3>
</div>

<div class="row">

  <form method="POST" role="form" ng-submit="callTerm()">
    <div class="row">
      <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
        <div class="form-group">
          <label for="CourseType">Year
          </label>
          <input type="number" class="form-control" ng-model="filterTable.Year" min="1990">
        </div>
      </div>
      <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
        <div class="form-group">
          <label for="TermId">Number</label>
          <input type="number" class="form-control" ng-model="filterTable.Number">
        </div>
      </div>
    </div>

    <button type="submit" class="btn btn-primary">Look Up</button>
    <button type="button" class="btn btn-default" ng-click="resetTable()">Reset</button>
  </form>
</div>

<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <table class="table table-striped table-hover">
      <thead>
        <tr>
          <th>Student</th>
          <th>Action</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="item in items">
          <td>{{ item.FullName }}</td>
          <td>
            <input type="radio" ng-model="item.IsBestStudentRaffled" ng-value="true" name="RaffledStudent" ng-change="handleRadioRaffled(item)" required />
          </td>
        </tr>
      </tbody>
    </table>
    <button class="btn btn-primary" ng-click="save()">Save</button>
  </div>
</div>

<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <a href="#">Best Student Certificate</a>
  </div>
</div>